package com.cc.pms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
/**
 * <p>
 * 记录用户申请加入队伍的请求及处理状态
 * </p>
 *
 * @author corleone
 * @since 2025-04-19
 */
@Getter
@Setter
@ToString
@TableName("team_application")
public class TeamApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 申请记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 队伍id
     */
    @TableField("team_id")
    private Long teamId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 申请时间
     */
    @TableField("apply_time")
    private String applyTime;

    /**
     * 申请状态，0-待处理，1-已接受，2-已拒绝
     */
    @TableField("status")
    private Integer status;

    /**
     * 处理人id
     */
    @TableField("handler_id")
    private Long handlerId;

    /**
     * 申请备注
     */
    @TableField("remark")
    private String remark;
}
